import { NgModule } from "@angular/core";
import { StoreModule } from "@ngrx/store";
import { reducer } from "./reducers";
import { TodolistRoutesModule } from "./todolist-routes.module";
import { CommonModule } from "@angular/common";
import { TodolistComponent } from "./todolist.component";
import { StoreDevtoolsModule } from "@ngrx/store-devtools";
import { TodolistItemComponent } from "./todolist-item/todolist-item.component";
import { TodoInputComponent } from "./todo-input/todo-input.component";
import { MdButtonModule, MdButtonToggleModule, MdInputModule } from "@angular/material";
import { FormsModule } from "@angular/forms";

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    StoreModule.provideStore(reducer),
    StoreDevtoolsModule.instrumentOnlyWithExtension(),
    TodolistRoutesModule,

    MdInputModule,
    MdButtonModule,
    MdButtonToggleModule
  ],
  declarations: [
    TodolistComponent,
    TodolistItemComponent,
    TodoInputComponent
  ]
})
export class TodolistModule {
}
